package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 板块详情对象 sector_detail
 * 
 * @author ruoyi
 * @date 2021-12-27
 */
public class SectorDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** label */
    @Excel(name = "label")
    private String label;

    private String name;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 平均价格 */
    @Excel(name = "平均价格")
    private String trade;

    /** 涨跌额 */
    @Excel(name = "涨跌额")
    private String pricechange;

    /** 涨跌幅 */
    @Excel(name = "涨跌幅")
    private String changepercent;

    /** 总成交量 */
    @Excel(name = "总成交量")
    private String volume;

    /** 总成交额 */
    @Excel(name = "总成交额")
    private String amount;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setTrade(String trade) 
    {
        this.trade = trade;
    }

    public String getTrade() 
    {
        return trade;
    }
    public void setPricechange(String pricechange) 
    {
        this.pricechange = pricechange;
    }

    public String getPricechange() 
    {
        return pricechange;
    }
    public void setChangepercent(String changepercent) 
    {
        this.changepercent = changepercent;
    }

    public String getChangepercent() 
    {
        return changepercent;
    }
    public void setVolume(String volume) 
    {
        this.volume = volume;
    }

    public String getVolume() 
    {
        return volume;
    }
    public void setAmount(String amount) 
    {
        this.amount = amount;
    }

    public String getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("label", getLabel())
            .append("date", getDate())
            .append("trade", getTrade())
            .append("pricechange", getPricechange())
            .append("changepercent", getChangepercent())
            .append("volume", getVolume())
            .append("amount", getAmount())
            .toString();
    }

    public SectorDetail() {
    }

    public SectorDetail(String label) {
        this.label = label;
    }

    public SectorDetail(String label, Date date, String trade, String pricechange, String changepercent, String volume, String amount) {
        this.label = label;
        this.date = date;
        this.trade = trade;
        this.pricechange = pricechange;
        this.changepercent = changepercent;
        this.volume = volume;
        this.amount = amount;
    }
}
